package com.api.shopapi.service;

import com.api.shopapi.entity.NursingItem;
import com.api.shopapi.entity.dto.NursingItemDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NursingItemService {

    int  insert( NursingItem nursingItem);

    int  update(NursingItem nursingItem);

    int  delete(String nursingItemCode);

    PageInfo<NursingItemDTO> getPageList(int pageIndex, int pageSize, String institutionCode, String name, int status, String nursingTypeCode);

    NursingItem getByNursingItemCode(String nursingItemCode);

    List<NursingItem> getListByNursingType(String institutionCode,String nursingTypeCode);

    NursingItem getByNameAndInstitutionCode(String name, String institutionCode);

    List<NursingItem> getList(String institutionCode);

    PageInfo<NursingItem> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
